package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoods;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsMapper {
    long countByExample(DirectMailGoodsExample example);

    int deleteByExample(DirectMailGoodsExample example);

    int deleteByPrimaryKey(Integer directMailGoodsId);

    int insert(DirectMailGoods record);

    int insertSelective(@Param("record") DirectMailGoods record, @Param("selective") DirectMailGoods.Column ... selective);

    DirectMailGoods selectOneByExample(DirectMailGoodsExample example);

    DirectMailGoods selectOneByExampleWithBLOBs(DirectMailGoodsExample example);

    List<DirectMailGoods> selectByExampleWithBLOBs(DirectMailGoodsExample example);

    List<DirectMailGoods> selectByExample(DirectMailGoodsExample example);

    DirectMailGoods selectByPrimaryKey(Integer directMailGoodsId);

    DirectMailGoods selectByPrimaryKeyWithLogicalDelete(@Param("directMailGoodsId") Integer directMailGoodsId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoods record, @Param("example") DirectMailGoodsExample example, @Param("selective") DirectMailGoods.Column ... selective);

    int updateByExampleWithBLOBs(@Param("record") DirectMailGoods record, @Param("example") DirectMailGoodsExample example);

    int updateByExample(@Param("record") DirectMailGoods record, @Param("example") DirectMailGoodsExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoods record, @Param("selective") DirectMailGoods.Column ... selective);

    int updateByPrimaryKeyWithBLOBs(DirectMailGoods record);

    int updateByPrimaryKey(DirectMailGoods record);

    int batchInsert(@Param("list") List<DirectMailGoods> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoods> list, @Param("selective") DirectMailGoods.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsExample example);

    int logicalDeleteByPrimaryKey(Integer directMailGoodsId);
}